import Layout from '@/views/common/index.vue'

export default [
  {
    path: '/dashboard',
    component: Layout,
    name: 'dashboard',
    redirect: '/dashboard/base',
    meta: {
      title: '系统管理'
    },
    children: [
      {
        path: 'base',
        name: 'DashboardBase',
        component: () => import('@/views/system/base/index.vue'),
        meta: {
          title: '首页'
        }
      },
      {
        path: 'menu/list',
        name: 'menuList',
        component: () => import('@/views/system/menu/MenuManager.vue'),
        meta: {
          title: '菜单管理',
          path: 'menu/list'
        }
      },
      {
        path: 'code/list',
        name: 'codeList',
        component: () => import('@/views/system/code/CodeManager.vue'),
        meta: {
          title: '代码管理'
        }
      },
      {
        path: 'dept/list',
        name: 'deptList',
        component: () => import('@/views/system/dept/DeptManager.vue'),
        meta: {
          title: '部门管理'
        }
      },
      {
        path: 'unit/list',
        name: 'unitList',
        component: () => import('@/views/system/unit/UnitManager.vue'),
        meta: {
          title: '机构管理'
        }
      },
      {
        path: 'user/list',
        name: 'userList',
        component: () => import('@/views/system/user/UserManager.vue'),
        meta: {
          title: '用户管理'
        }
      },
      {
        path: 'role/list',
        name: 'roleList',
        component: () => import('@/views/system/role/RoleManager.vue'),
        meta: {
          title: '角色管理'
        }
      },
      {
        path: 'privilege/list',
        name: 'privilegeList',
        component: () => import('@/views/system/privilege/PrivilegeManager.vue'),
        meta: {
          title: '权限管理'
        }
      },
      {
        path: 'setting/form',
        name: 'settingForm',
        component: () => import('@/views/system/setting/SettingForm.vue'),
        meta: {
          title: '系统设置'
        }
      },
      {
        path: 'setting/list',
        name: 'settingList',
        component: () => import('@/views/system/setting/SettingDefine.vue'),
        meta: {
          title: '系统设置配置'
        }
      },
      {
        path: 'timer/list',
        name: 'timerList',
        component: () => import('@/views/system/timer/TimerList.vue'),
        meta: {
          title: '定时任务管理'
        }
      },
      {
        path: 'holiday/set',
        name: 'holidaySet',
        component: () => import('@/views/system/holiday/HolidaySet.vue'),
        meta: {
          title: '节假日维护'
        }
      },
      {
        path: '/403',
        name: '403',
        component: () => import('@/views/system/error/403.vue')
      },
      {
        path: '404',
        name: 'not-fount',
        component: () => import('@/views/system/error/NotFount.vue'),
        meta: {
          title: '404'
        }
      },
      {
        path: 'router/list',
        name: 'router',
        component: () => import('@/views/system/router/RouterManager.vue'),
        meta: {
          title: '路由管理'
        }
      }
    ]
  }
]
